package com.ioftv.dto;

import lombok.Data;

import java.io.Serializable;

/**
 * 登录响应数据
 */
@Data
public class LoginResponse implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * JWT Token
     */
    private String token;

    /**
     * 用户信息
     */
    private UserInfo user;

    @Data
    public static class UserInfo implements Serializable {
        private Long id;
        private String username;
        private String nickname;
        private String role;
        private String companyName; // 添加公司名称字段
    }
}